export const rules = {
  title: [{
    required: true,
    message: "please input title",
    trigger: "change"
  }],
  currency: [{
    required: true,
    message: "please input Currency",
    trigger: "blur"
  }],
  rate: [{
    required: true,
    message: "please input rate",
    trigger: "change"
  }],
  symbol: [{
    required: true,
    message: "please input Symbol",
    trigger: "change"
  }],
  description: [{
    required: true,
    message: "please input description",
    trigger: "change"
  }],
  startdate: [{
    required: true,
    message: "please input startdate",
    trigger: "change"
  }],
  enddate: [{
    required: true,
    message: "please input enddate",
    trigger: "change"
  }],
};

export function Model(title = "", currency = "", rate = "", symbol = "", description = "", startdate = "", enddate =
  "") {
  this.title = title;
  this.currency = currency;
  this.rate = rate;
  this.symbol = symbol;
  this.description = description;
  this.startdate = startdate;
  this.enddate = enddate;
}